// <copyright file="BaseUC.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using System.Web.UI;

namespace YUIAspNetDemo.Button.UserControls
{
    public class BaseUC :  UserControl
    {
        public string ButtonText
        {
            get { return Button.Text; }
            set { Button.Text = value; }
        }

        public YUIAspNet.ButtonType ButtonType
        {
            get { return Button.ButtonType; }
            set
            {
                if (value != YUIAspNet.ButtonType.Split && value != YUIAspNet.ButtonType.Menu)
                    throw new ArgumentException("Value canot be other than Split or Menu!");
                Button.ButtonType = value;
            }
        }

        public virtual YUIAspNet.Button Button
        {
            get { return null; }
        }
    }
}
